﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MasterListEditControl.ascx.cs" Inherits="LenderClearingHouse.MasterListEditControl" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<table width="1100px">
    <tr>
        <td style="width:550px; vertical-align:top;">
            <table width="100%">
                <tr>
                    <td>
                        Ts Number
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edTsNumber" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.TsNumber") %>' Width="300px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        APN
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edAPN" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Apn") %>' Width="200px"/>
                        <asp:Button runat="server" ID="btnLookup" Text="Lookup" OnClick="btnLookup_Click" CausesValidation="false" Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>' />
                        <br />
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="edAPN" ErrorMessage="Apn required!" ForeColor="Red" ValidationGroup="EditControl"  Display="Dynamic" />
                        <br />
                        <asp:Label runat="server" ForeColor="Red" ID="lblLookupError" Visible="false"/>
                        <asp:Label runat="server" ForeColor="Green" ID="lblLookupMessage" Visible="false"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Property Location
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edPropertyLocation" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.PropertyLocation") %>' Width="300px"/><br />
                        <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="edPropertyLocation" ErrorMessage="Location required!" ForeColor="Red" ValidationGroup="EditControl" Display="Dynamic"  />
                    </td>
                </tr>
                <tr>
                    <td>
                        ZipCode
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edZipCode" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.ZipCode") %>' Width="200px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Stories
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edStories" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Stories") %>' Width="200px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Opening Bid
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="edTsOpeningBid" Runat="server" Width="300px" Culture="en-US" LabelWidth="64px" Type="Currency" DbValue='<%# DataBinder.Eval( Container, "DataItem.TsOpeningBid") %>' >
                          <NumberFormat ZeroPattern="$n"></NumberFormat>
                        </telerik:RadNumericTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        NOS
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edNos" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Nos") %>' Width="200px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Recon Trust - Date of Sale
                    </td>
                    <td>
                        <telerik:RadDatePicker ID="edReconTrust_DateOfSale" runat="server" DbSelectedDate='<%# DataBinder.Eval( Container, "DataItem.ReconTrust_DateOfSale") %>'/>
                    </td>
                </tr>
                <tr>
                    <td>
                        LPS - Sales Status
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edLPS_SalesStatus" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.LPS_SalesStatus") %>' Width="300px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Priority Post - Status
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edPriorityPost_Status" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.PriorityPost_Status") %>' Width="300px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        National Default – Sale Date Previous/Projected
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edNdsCorp_SaleDate" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.NdsCorp_SaleDate") %>' Width="300px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        HOA
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edHoa" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Hoa") %>' Width="300px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Status
                    </td>
                    <td>
                        <telerik:RadComboBox ID="edListingStatus" runat="server" Width="300px">
                            <Items>
                                <telerik:RadComboBoxItem Text="Available" Value="Available" />
                                <telerik:RadComboBoxItem Text="Reserved" Value="Reserved" />
                                <telerik:RadComboBoxItem Text="Unassigned" Value="Unassigned" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Client
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edClient" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Client") %>' Width="300px"/>
                    </td>
                </tr>
            </table>
        </td>
        <td style="width:200px; vertical-align:top;">
            <table width="100%">
                <tr>
                    <td>
                        Auction Date
                    </td>
                    <td>
                        <telerik:RadDatePicker ID="edAuctionDate" runat="server" DbSelectedDate='<%# DataBinder.Eval( Container, "DataItem.AuctionDate") %>'  Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        v/o
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edvo" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.vo") %>' Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        ConstYear
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edConstructYear" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.ConstructYear") %>' Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        TotalSqft
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edTotalSqft" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.TotalSqft") %>' Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        LotSize
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edLotSize" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.LotSize") %>' Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Bed
                    </td>
                    <td>
                        <telerik:RadComboBox ID="edBedrooms" runat="server" Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Bath
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edBathrooms" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Bathrooms") %>' Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        GarageSqft
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edGarageSqft" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.GarageSqft") %>' Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Pool
                    </td>
                    <td>
                        <telerik:RadComboBox ID="edPool" runat="server" Width="100px">
                            <Items>
                                <telerik:RadComboBoxItem Text="NO" Value="NO" />
                                <telerik:RadComboBoxItem Text="YES" Value="YES" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Estimated Bid
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="edEstimatedBid" Runat="server" Culture="en-US" LabelWidth="64px" Type="Currency" DbValue='<%# DataBinder.Eval( Container, "DataItem.EstimatedBid") %>' Width="100px">
                          <NumberFormat ZeroPattern="$n"></NumberFormat>
                        </telerik:RadNumericTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        EstVal
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="edEstVal" Runat="server" Culture="en-US" LabelWidth="64px" Type="Currency" DbValue='<%# DataBinder.Eval( Container, "DataItem.EstVal") %>' Width="100px">
                          <NumberFormat ZeroPattern="$n"></NumberFormat>
                        </telerik:RadNumericTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Taxes Due
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="edTax" Runat="server" Culture="en-US" LabelWidth="64px" Type="Currency" DbValue='<%# DataBinder.Eval( Container, "DataItem.Tax") %>' Width="100px" >
                          <NumberFormat ZeroPattern="$n"></NumberFormat>
                        </telerik:RadNumericTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Site
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edSite" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Site") %>' Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        On/Off
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edOnOff" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.OnOff") %>' Width="100px"/>
                    </td>
                </tr>
            </table>
        </td>
        <td style="width:320px; vertical-align:top;">
            <table width="100%">
                <tr>
                    <td>
                        Trustee
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edTrustee" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Trustee") %>' Width="200px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Spa
                    </td>
                    <td>
                        <telerik:RadComboBox ID="edSpa" runat="server" Width="100px">
                            <Items>
                                <telerik:RadComboBoxItem Text="NO" Value="NO" />
                                <telerik:RadComboBoxItem Text="YES" Value="YES" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        MaxBd
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="edMaxBid" Runat="server" Culture="en-US" LabelWidth="64px" Type="Currency" DbValue='<%# DataBinder.Eval( Container, "DataItem.MaxBid") %>' Width="100px" >
                          <NumberFormat ZeroPattern="$n"></NumberFormat>
                        </telerik:RadNumericTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Liens
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edLiens" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Liens") %>' Width="200px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Misc Notes
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edMiscNotes" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.MiscNotes") %>' Width="200px" TextMode="MultiLine" Rows="3"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        AssessorDesc
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edAssessorDesc" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.AssessorDesc") %>' Width="200px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Prelist Status
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edPrelistStatus" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.PrelistStatus") %>' Width="200px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Purchase Price
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="edPurchasePrice" Runat="server" Culture="en-US" LabelWidth="64px" Type="Currency" DbValue='<%# DataBinder.Eval( Container, "DataItem.PurchasePrice") %>' Width="100px" >
                          <NumberFormat ZeroPattern="$n"></NumberFormat>
                        </telerik:RadNumericTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Rehab Costs
                    </td>
                    <td>
                        <telerik:RadNumericTextBox ID="edRehabCosts" Runat="server" Culture="en-US" LabelWidth="64px" Type="Currency" DbValue='<%# DataBinder.Eval( Container, "DataItem.RehabCosts") %>' Width="100px" >
                          <NumberFormat ZeroPattern="$n"></NumberFormat>
                        </telerik:RadNumericTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        LandUse
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edLandUse" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.LandUse") %>' Width="200px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Phase
                    </td>
                    <td>
                        <telerik:RadComboBox ID="edPhase" runat="server" Width="100px">
                            <Items>
                                <telerik:RadComboBoxItem Text="1" Value="1" />
                                <telerik:RadComboBoxItem Text="2" Value="2" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        Close Date
                    </td>
                    <td>
                        <telerik:RadDatePicker ID="edCloseDate" runat="server" DbSelectedDate='<%# DataBinder.Eval( Container, "DataItem.CloseDate") %>'  Width="100px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Source
                    </td>
                    <td>
                        <telerik:RadTextBox ID="edSource" runat="server" Text='<%# DataBinder.Eval( Container, "DataItem.Source") %>' Width="200px"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        Date of Reservation
                    </td>
                    <td>
                        <telerik:RadDatePicker ID="edDateRecorded" runat="server" DbSelectedDate='<%# DataBinder.Eval( Container, "DataItem.DateRecorded") %>'  Width="100px"/>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<table>
    <tr>
        <td>
            <asp:Button ID="btnUpdate" Text="Update" runat="server" CommandName="Update" Visible='<%# !(DataItem is Telerik.Web.UI.GridInsertionObject) %>' ValidationGroup="EditControl"/>
            <asp:Button ID="btnInsert" Text="Insert" runat="server" CommandName="PerformInsert" Visible='<%# DataItem is Telerik.Web.UI.GridInsertionObject %>' ValidationGroup="EditControl"/>
            &nbsp;
            <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>
        </td>
    </tr>
</table>
